<!doctype=html>
<html>
  <head>
    <meta charset="utf-8">
    <title>android polling</title>
  </head>
  <body>
    <p>发送消息</p>
    <form method="post" action="send.php">
      <label>消息: </label><input type="text" name="msg"><br>
      <input type="submit" value="提交" />
    </form>

    <p>message list</p>
      <ul>
<?php
$mysql = new SaeMysql();
$sql = "SELECT * FROM `message`";
$data = $mysql->getData( $sql );
for($i = 0; $i < count($data); $i++)
{
  echo '<li>msg: ' . $data[$i]["content"] . ', time: ' . $data[$i]["time"] . '</li>';
}
$mysql->closeDb();
?>
      </ul>
  </body>
</html>
